package qlsl.androiddesign.entity.commonentity;

import java.io.Serializable;

import qlsl.androiddesign.constant.BaseConstant;
import qlsl.androiddesign.method.UserMethod;

/**
 * 用户信息实体类<br/>
 * 
 */
public class User implements Serializable {

	private static final long serialVersionUID = -7328972076759340693L;

	private String username;

	private String mobile;

	private String provincename;

	private String cityname;

	private String areaname;

	private String points;

	private String photo;

	public String getUserId() {
		return BaseConstant.TOKEN;
	}

	public Integer getRole() {
		return UserMethod.getRoleFromProperty();
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getProvincename() {
		return provincename;
	}

	public void setProvincename(String provincename) {
		this.provincename = provincename;
	}

	public String getCityname() {
		return cityname;
	}

	public void setCityname(String cityname) {
		this.cityname = cityname;
	}

	public String getAreaname() {
		return areaname;
	}

	public void setAreaname(String areaname) {
		this.areaname = areaname;
	}

	public String getPoints() {
		return points;
	}

	public void setPoints(String points) {
		this.points = points;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getNickname() {
		return username;
	}

	public String toString() {
		return "username:" + username + "  mobile:" + mobile + "  provincename:" + provincename + "  cityname:"
				+ cityname + "  areaname:" + areaname + "  points:" + points + "  photo:" + photo;
	}

}
